package com.power.weboffice.controller;

import com.plf.common.domain.ResponseDTO;
import com.plf.core.base.model.Ha_attachment;
import com.plf.core.base.service.Ha_attachmentService;
import com.power.weboffice.api.IWebOfficeCallback;
import com.power.weboffice.service.WebOfficeCallbackService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Slf4j
@RestController
public class WebOfficeCallbackController implements IWebOfficeCallback {

    @Resource
    private WebOfficeCallbackService service;

    @Override
    public ResponseDTO saveCallback(String userid, String applyid, String attachid) {
        log.info("在线编辑保存回调 {}， {}， {}", userid, applyid, attachid);
        this.service.saveCallback(userid, applyid, attachid);
        return ResponseDTO.succ();
    }
}
